/*
 * @Descripttion: 
 * @version: 
 * @Author: Xugang
 * @Date: 2022-03-10 14:17:14
 * @LastEditors: Xugang
 * @LastEditTime: 2022-03-18 10:55:13
 */
export const getDIANLI = (params) => {
    const boolean = params.prop === 'dianli'
    return Promise.resolve({
        success: boolean,
        data: !boolean ? null : [
            { dianli: '电力' }
        ]
    })
}

export const getMEIQI = (params) => {
    const boolean = params.prop === 'meiqi'
    return Promise.resolve({
        success: boolean,
        data: !boolean ? null : [
            { meiqi: '煤气' }
        ]
    })
}

export const getTIANRANQI = (params) => {
    const boolean = params.prop === 'tianranqi'
    return Promise.resolve({
        success: boolean,
        data: !boolean ? null : [
            { tianranqi: '2022-03-09' }
        ]
    })
}

export const getYEHUAQI = (params) => {
    const boolean = params.prop === 'yehuaqi'
    return Promise.resolve({
        success: boolean,
        data: !boolean ? null : [
            { yehuaqi: '男' }
        ]
    })
}

export const getList = (params) => {
    if (params === 'radio') {
        return Promise.resolve({
            success: true,
            data: [
                { label: '男', value: '男' },
                { label: '女', value: '女' },
            ]
        })
    }
    if (params === 'select') {
        return Promise.resolve({
            success: true,
            data: [
                { label: '煤气', value: '煤气' },
                { label: '天然气', value: '天然气' },
            ]
        })
    }
    return Promise.resolve({
        success: true,
        data: []
    })

}
